package com.mh.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;
import java.util.Date;

/**
 * 菜单权限表(SysMenu)实体类
 *
 * @author makejava
 * @since 2025-03-15 13:39:07
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
//表示在序列化时,忽略值为null的字段
//从而减少生成的JSON数据的大小,并避免传递无用的信息
@TableName(value = "sys_menu")
public class SysMenu implements Serializable {
    private static final long serialVersionUID = 977031456604748188L;
/**
     * 菜单ID
     */
    @TableId //主键
    private Long menuId;
/**
     * 菜单名称
     */
    private String menuName;
/**
     * 路由地址
     */
    private String path;
/**
     * 组件路径
     */
    private String component;
/**
     * 菜单状态（0显示 1隐藏）
     */
    private String visible;
/**
     * 菜单状态（0正常 1停用）
     */
    private String status;
/**
     * 权限标识
     */
    private String perms;
/**
     * 菜单图标
     */
    private String icon;
/**
     * 创建者
     */
    private String createBy;
/**
     * 创建时间
     */
    private Date createTime;
/**
     * 更新者
     */
    private String updateBy;
/**
     * 更新时间
     */
    private Date updateTime;
/**
     * 备注
     */
    private String remark;

    public SysMenu() {
    }

    //有无参,set(),get()
    public SysMenu(Long menuId, String menuName, String path, String component, String visible, String status, String perms, String icon, String createBy, Date createTime, String updateBy, Date updateTime, String remark) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.path = path;
        this.component = component;
        this.visible = visible;
        this.status = status;
        this.perms = perms;
        this.icon = icon;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.remark = remark;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getVisible() {
        return visible;
    }

    public void setVisible(String visible) {
        this.visible = visible;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPerms() {
        return perms;
    }

    public void setPerms(String perms) {
        this.perms = perms;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}

